﻿
<div id="wrapper_menu">
    <!-- BEGIN MENU WRAPPER -->
    <ul class="menu menu_blue">
        <!-- BEGIN MENU -->
    @if (Request.IsAuthenticated)
    {

        if(User.Identity.Name!="1080")
        {
        if (Request.IsAuthenticated && Roles.GetRolesForUser(User.Identity.Name)[0] == "admin")
        {
                <li>
                    <a href="#" class="drop">Quản trị</a><!-- Begin 3 columns Item -->
                    <div class="quan_tri">
                        <!-- Begin 3 columns container -->
                        <div class="col_1 firstcolumn">
                            <div class="col_1 firstcolumn">
                                <ul class="greybox">
                                    @*@if (Request.IsAuthenticated && User.IsInRole("Admin"))*@
                                    <li id="_11"><a href="#">@Html.ActionLink("Tài khoản", "Index", "User")</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <!-- End 3 columns container -->
                </li>
            }
            
            
            <!-- End 3 columns Item -->
            <li>
                <a href="#" class="drop">Quản lý danh mục</a><!-- Begin 3 columns Item -->
                <div class="quan_tri">
                    <!-- Begin 3 columns container -->
                    <div class="col_1 firstcolumn">
                        <div class="col_1 firstcolumn">
                            <ul class="levels">
                                @if (Request.IsAuthenticated && Roles.GetRolesForUser(User.Identity.Name)[0] == "admin")
                                {
                                    <li><a href="#">@Html.ActionLink("Dslam", "Index", "Dslam")</a></li>
                                }
                                <li><a href="#">@Html.ActionLink("Port Dslam", "Index", "DslamPort")</a></li>
                                <li>------------</li>
                                @if (Request.IsAuthenticated && Roles.GetRolesForUser(User.Identity.Name)[0] == "admin")
                                {
                                    <li><a href="#">@Html.ActionLink("Dslam Quang", "Index", "Dslamftth")</a></li>
                                }
                                <li><a href="#">@Html.ActionLink("Port Dslam Quang", "Index", "DslamPortftth")</a></li>
                                <li>------------</li>
                                @if (Request.IsAuthenticated && Roles.GetRolesForUser(User.Identity.Name)[0] == "admin")
                                {
                                    <li><a href="#">@Html.ActionLink("GPON", "Index", "GPON")</a></li>
                                }
                                <li><a href="#">@Html.ActionLink("Port GPON", "Index", "GPONPORT")</a></li>

                            </ul>
                        </div>
                    </div>
                </div><!-- End 3 columns container -->
            </li><!-- End 3 columns Item -->
            
        <!-- End 3 columns Item -->
        <li>
            <a href="#" class="drop">Đo kiểm</a><!-- Begin 3 columns Item -->
            <div class="quan_tri">
                <!-- Begin 3 columns container -->
                <div class="col_1 firstcolumn">
                    <div class="col_1 firstcolumn">
                        <ul class="levels">
                            <li><a href="#">@Html.ActionLink("Chất lượng ADSL", "do_kiem_xDSL", "DslamPort")</a></li>
                        </ul>     
    
                    </div>
                </div>
            </div><!-- End 3 columns container -->
        </li><!-- End 3 columns Item -->

        <li>
            <a href="#" class="drop">Tác động</a><!-- Begin 3 columns Item -->
            <div class="quan_tri">
                <!-- Begin 3 columns container -->
                <div class="col_1 firstcolumn">
                    <div class="col_1 firstcolumn">
                        <ul class="levels">
                            <li><a href="#">@Html.ActionLink("Tạo Cổng", "create_account_in_port", "DslamPort")</a></li>
                            <li><a href="#">@Html.ActionLink("Hủy Cổng", "drop_account_in_port", "DslamPort")</a></li>
                            <li><a href="#">@Html.ActionLink("Khóa, mở cổng", "action_in_port", "DslamPort")</a></li>       
                         </ul>
                    </div>
                </div> 
            </div><!-- End 3 columns container -->
        </li><!-- End 3 columns Item -->

        <li>
            <a href="#" class="drop">Báo cáo</a><!-- Begin 3 columns Item -->
            <div class="quan_tri">
                <!-- Begin 3 columns container -->
                <div class="col_1 firstcolumn">
                    <div class="col_1 firstcolumn">
                        <ul class="levels">
                            <li><a href="#">@Html.ActionLink("Báo cáo Tổng quát", "Index", "Report")</a></li>
                            <li><a href="#">@Html.ActionLink("Báo cáo Internet", "Index", "ReportInternet")</a></li>
                            <li><a href="#">@Html.ActionLink("Báo cáo MyTV", "Index", "ReportMytv")</a></li>
                            @*<li class="parent_li"><a href="#" class="parent">Thuộc tính cơ bản</a>
                                <ul class="greybox">
                                    <li id="_39"><a href="#">@Html.ActionLink("Thiết bị DSLAM", "Index", "Manage_Dslam")</a></li>

                                </ul>*@
                        </ul>                        
                    </div> 
                </div>
            </div><!-- End 3 columns container -->
       </li><!-- End 3 columns Item -->

            if (Request.IsAuthenticated && Roles.GetRolesForUser(User.Identity.Name)[0] == "admin")
            {
            <li>
                <a href="#" class="drop">Đồng Bộ</a><!-- Begin 3 columns Item -->
                <div class="quan_tri">
                    <!-- Begin 3 columns container -->
                    <div class="col_1 firstcolumn">
                        <div class="col_1 firstcolumn">
                            <ul class="levels">
                                <li><a href="#">@Html.ActionLink("Đồng Bộ Adsl", "adsl", "DongBo")</a></li>
                                <li><a href="#">@Html.ActionLink("Đồng Bộ Mytv", "mytv", "DongBo")</a></li>
                                <li><a href="#">@Html.ActionLink("Xóa Dữ Liệu", "Xoa", "DongBo")</a></li>

                            </ul>
                        </div>
                    </div>
                </div>
                <!-- End 3 columns container -->
            </li>
            }
            if (Request.IsAuthenticated && Roles.GetRolesForUser(User.Identity.Name)[0] == "admin")
            {
            <li>
                <a href="#" class="drop">Xuất Dữ Liệu</a><!-- Begin 3 columns Item -->
                <div class="quan_tri">
                    <!-- Begin 3 columns container -->
                    <div class="col_1 firstcolumn">
                        <div class="col_1 firstcolumn">
                            <ul class="levels">
                                <li><a href="#">@Html.ActionLink("Xuất dữ liêu", "index", "xuatdl")</a></li>
                                @*<li><a href="#">@Html.ActionLink("Adsl 4 tham số", "bonthamso", "DongBo")</a></li>*@
                                @*<li><a href="#">@Html.ActionLink("Đồng Bộ Mytv", "mytv", "DongBo")</a></li>*@
                            </ul>
                        </div>
                    </div>
                </div>
                <!-- End 3 columns container -->
            </li>
            }

        <li>
            <a href="#" class="drop">Khai Báo Gpon</a><!-- Begin 3 columns Item -->
            <div class="quan_tri">
                <!-- Begin 3 columns container -->
                <div class="col_1 firstcolumn">
                    <div class="col_1 firstcolumn">
                        <ul class="levels">
                            <li><a href="#">@Html.ActionLink("Khai Báo MYTV", "khaibaomytv", "GPON")</a></li>
                            <li><a href="#">@Html.ActionLink("Khai Báo Internet", "khaibaointernet", "GPON")</a></li>
                            <li><a href="#">@Html.ActionLink("Xóa Dịch Vụ", "xoadichvugpon", "GPON")</a></li>
                            <li><a href="#">@Html.ActionLink("kiểm tra cổng", "kiemtragpon", "GPON")</a></li>
                            @*
            @*<li class="parent_li"><a href="#" class="parent">Thuộc tính cơ bản</a>
                                    <ul class="greybox">
                                        <li id="_39"><a href="#">@Html.ActionLink("Thiết bị DSLAM", "Index", "Manage_Dslam")</a></li>

                                    </ul>*@

                        </ul>              
                    </div> 
                </div> 
            </div><!-- End 3 columns container -->
        </li><!-- End 3 columns Item -->
        }
        }
        @if (Request.IsAuthenticated)
        {
            <li class="right">
                <a class="nodrop" href="@Url.Action("LogOff", "Account")">
                    @User.Identity.Name<strong>
                    [Thoát]
                </strong>
            </a>
        </li>
        }
    

@*<li class="right"><a href="#" class="nodrop">Admin [Thoát]</a></li>*@
</ul><!-- END MENU -->
</div><!-- END MENU WRAPPER -->
